<!DOCTYPE html>
<style>
iframe {
  border: none;
}
body, iframe {
  margin: 0;
  padding: 0;
}
</style>
<script>
if (window.testRunner)
  testRunner.waitUntilDone();

function finishTest() {
  if (window.testRunner)
    testRunner.notifyDone();
}
</script>
<iframe></iframe>
<script>
var iframe = document.querySelector('iframe');
iframe.contentWindow.finishTest = finishTest;
iframe.contentDocument.body.innerHTML =
'<style>body { margin: 0; padding: 0; }</style>'+
'<svg width="100" height="100">'+
'<image width="100" height="100" xlink:href="//localhost:8000/resources/square100.png" onload="finishTest()"></image>'+
'</svg>';
</script>
